package cn.lingyangwl.agile.auth.model.entity;

import cn.lingyangwl.agile.model.BasePlusPO;
import cn.lingyangwl.agile.tenant.core.DataIsolation;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.Getter;
import lombok.Setter;

/**
 * 外部身份源提供商(External Identity Provider)模板
 *
 * @author shenguangyang
 */
@Getter
@Setter
@TableName("auth_ext_ldp")
@DataIsolation(filterTenant = true, tableName = "auth_ext_ldp")
public class ExtLdp extends BasePlusPO {
    @TableId
	private Long id;

	/**
	 * 编码
	 */
	private String code;
	
	/**
	 * 类型, social-1(社会)/enterprise-2(企业)
	 */
	private String type;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 图标
	 */
	private String logo;
	
	/**
	 * 描述
	 */
	private String description;

    public static LambdaQueryWrapper<ExtLdp> lqw() {
		return Wrappers.lambdaQuery();
	}
}
